package com.example.cupid.util;

import java.security.SecureRandom;

/**
 * 2021/9/2
 **/
public class Verification {

    public static String getVerification(){
            return (Math.random()+"").substring(2,8);
    }
    public static int secureRandom(int x){
        SecureRandom secureRandom = new SecureRandom();
        //secureRandom.setSeed(10000L);
        int num = secureRandom.nextInt(x);
        //System.out.println(num);
        return num;
    }
}
